package com.sikaryofficial.system.api;

import com.sikaryofficial.common.core.constant.ServiceNameConstants;
import com.sikaryofficial.common.core.domain.R;
import com.sikaryofficial.system.api.factory.RemoteReportFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 举报接口
 *
 * @author qinjinyuan
 */
@FeignClient(contextId = "remoteSystemReportService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteReportFallbackFactory.class)
public interface RemoteSystemReportService {
    /**
     * 日活-定时任务
     *
     * @param timeType 时间类型:day-天,week-周,month-月,quarter-季度,year-年
     * @return 结果
     */
    @GetMapping("/report/job/activity/{timeType}")
    R<Boolean> activityByType(@PathVariable("timeType") String timeType);

    /**
     * 新增用户-定时任务
     *
     * @param timeType 时间类型:day-天,week-周,month-月,quarter-季度,year-年
     * @return 结果
     */
    @GetMapping("/report/job/register/{timeType}")
    R<Boolean> registerByType(@PathVariable("timeType") String timeType);
}
